package demo.table;

public class UserInfo {
    public int id;
    public String name;
    public int age;
    public String sex;

    public UserInfo() {}

    public UserInfo(int id, String name, int age, String sex) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "UserInfo{"
                + "id="
                + id
                + ", name='"
                + name
                + '\''
                + ", age="
                + age
                + ", sex='"
                + sex
                + '\''
                + '}';
    }

    public int getId() {
        return id;
    }
}
